<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:param name="editTypeViewBean" value="#{commonContentViewBean}" />
	<ui:param name="editParentTypeViewBean" value="#{commonContentViewBean.parent}" />
		<h:form id="#{editTypeViewBean.id}_from">
	<p:fieldset id="#{editTypeViewBean.id}_fieldset" legend="编辑板块分类">
	<center>
	<h:panelGrid columns="2">
		<h:panelGroup style="float: right;">
	     	<h:outputText value="板块分类名称："/>
	 	</h:panelGroup>
		<h:panelGroup style="float: left;">
			<h:inputText id="#{editTypeViewBean.id}_typeName" value="#{editTypeViewBean.selectedCar.typeName}"
				style="width: 200px;" />
		</h:panelGroup>
	</h:panelGrid>
	</center>
	</p:fieldset>
	<center>
    	<p:commandButton actionListener="#{bbsManageAction.editTypeAction}"
			title="保存" 
			onstart="this.disabled=true"
			onclick="#{commonContentViewBean.id}_dialog.hide();" 
			image="./img/icons/add.png" 
			value="保存" 
			style="margin:5px;"
			update="#{editParentTypeViewBean.id}_form">
		<h:inputHidden value="#{editTypeViewBean.id}"/>
		</p:commandButton>		
		<p:commandButton title="关闭组织机构" 
			image="./img/icons/cancel.png"
			onclick="#{commonContentViewBean.id}_dialog.hide();" 
			type="button" 
			value="关闭" 
			style="margin:5px;">
		</p:commandButton>
	</center>
	</h:form>
</ui:composition>
